home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
tex
/
wstriprg.zip
/
STRIP.DOC
< prev
Wrap
Text File
|
1991-10-17
|
2KB
|
42 lines
STRIP.COM
By
Richard A. Gautier
This file is intended to strip out the 8th bit of characters saved in
WordStar document-type files. As far as I know it will work on WordStar
files up to version 4. Versions 5 and above also embed printer types, tab
placements and other strangeties that I don't wish to have to deal with.
The program was written on the fly (I couldn't access SIMTEL-20, so I
wrote it in Turbo-C) and doesn't claim to be the best on the market.
It takes an input file from the command line, and opens it for input.
It then evaluates the file one character at a time. If the /r is NOT used,
it merely strips off bit 8, and prints it out to standard output.
If the /r is used on the command line, whenever it hits a period in the
irst column of a line, it assumes it is a dot command, and ignores all
further input up until the next line feed (ASCII 10, 0x0A).
The syntax is simple:
strip filename [/r]
The /r is of course optional, and the filename may contain a full path.
To get the output to go to a file, you may use the > command or >> command
in DOS to redirect the output to a file or the printer. An example of this
is:
strip wsfile.txt /r > output.fil to send output to 'output.fil'
or
strip wsfile.txt /r > prn to send to a printer.
The program is public domain, free for any who want to use it. The
author can be reached at:
Richard A. Gautier
498 Denbigh Blvd #107
Newport News, VA 23602